package com.xiaoma.test;

import com.xiaoma.api.HelloService;
import com.xiaoma.impl.NettyServiceImpl;
import com.xiaoma.netty.server.NettyServer;

/**
 * @Author: xiaoma
 * @Date: 2021/7/5 16:14
 * @description:
 */
public class NettyTestServer {
    public static void main(String[] args) {
        NettyServiceImpl helloService = new NettyServiceImpl();
        NettyServer nettyServer = new NettyServer("127.0.0.1", 9998);
        nettyServer.publishService(helloService, HelloService.class);
    }
}
